import request from "@/framework/utils/request";

// 花型列表
export function patternList(data) {
  return request({
    url: "/admin/PatternController/patternList",
    method: "post",
    data,
  });
}

// 花型删除
export function patternDelete(data) {
  return request({
    url: "/admin/PatternController/patternDelete",
    method: "post",
    data,
  });
}

// 花型详情
export function patternInfo(data) {
  return request({
    url: "/admin/PatternController/patternInfo",
    method: "post",
    data,
  });
}

// 花型公布
export function patternPublic(data) {
  return request({
    url: "/admin/PatternController/patternPublic",
    method: "post",
    data,
  });
}

// 花型导入
export function patternImport(data) {
  return request({
    url: "/admin/PatternController/patternImport",
    method: "post",
    data,
  });
}

// 花型新增 修改
export function patternAdd(data) {
  return request({
    url: "/admin/PatternController/patternAdd",
    method: "post",
    data,
  });
}

export function patternSearch(data) {
  return request({
    url: "/admin/PatternController/patternSearch",
    method: "post",
    data,
  });
}
export function imgImport(data) {
  return request({
    url: "/admin/PatternController/PatternImgImport",
    method: "post",
    data,
  });
}

export function changePublic(data) {
  return request({
    url: "/admin/PatternController/changePublic",
    method: "post",
    data,
  });
}

export function ChangeViewPeople(data) {
  return request({
    url: "/admin/PatternController/ChangeViewPeople",
    method: "post",
    data,
  });
}

export function imageSearch(data) {
  return request({
    url: "/admin/PatternController/imageSearch",
    method: "post",
    data,
  });
}

// 花型列表
export function getAccountList(data) {
  return request({
    url: "/admin/PatternController/getAccountList",
    method: "post",
    data,
  });
}


// export function make

